﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace HFast.Contrast.Web.Migrations
{
    public partial class subject : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "KeyValue",
                keyColumn: "Id",
                keyValue: new Guid("0bd6cb37-70e2-4e18-94cd-a9660123a5a8"));

            migrationBuilder.DeleteData(
                table: "KeyValue",
                keyColumn: "Id",
                keyValue: new Guid("80447b2f-694c-4eb1-b876-a9660123a5af"));

            migrationBuilder.AddColumn<string>(
                name: "ListImg",
                table: "ContrastSubject",
                maxLength: 200,
                nullable: true);

            migrationBuilder.InsertData(
                table: "KeyValue",
                columns: new[] { "Id", "IsLocked", "Key", "ValueJson", "ValueType" },
                values: new object[] { new Guid("001748f8-6edf-4667-bcf8-aa6f0151e2a2"), false, "Site.Name", "\"OSHARP\"", "System.String,System.Private.CoreLib" });

            migrationBuilder.InsertData(
                table: "KeyValue",
                columns: new[] { "Id", "IsLocked", "Key", "ValueJson", "ValueType" },
                values: new object[] { new Guid("1c2a4c74-6917-43b8-a3df-aa6f0151e2ad"), false, "Site.Description", "\"Osharp with .NetStandard2.0 & Angular6\"", "System.String,System.Private.CoreLib" });

            migrationBuilder.UpdateData(
                table: "Role",
                keyColumn: "Id",
                keyValue: 1,
                columns: new[] { "ConcurrencyStamp", "CreatedTime" },
                values: new object[] { "60be5b61-52ec-4cf3-be10-e4f78281aa6d", new DateTime(2019, 6, 17, 20, 30, 12, 241, DateTimeKind.Local) });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "KeyValue",
                keyColumn: "Id",
                keyValue: new Guid("001748f8-6edf-4667-bcf8-aa6f0151e2a2"));

            migrationBuilder.DeleteData(
                table: "KeyValue",
                keyColumn: "Id",
                keyValue: new Guid("1c2a4c74-6917-43b8-a3df-aa6f0151e2ad"));

            migrationBuilder.DropColumn(
                name: "ListImg",
                table: "ContrastSubject");

            migrationBuilder.InsertData(
                table: "KeyValue",
                columns: new[] { "Id", "IsLocked", "Key", "ValueJson", "ValueType" },
                values: new object[] { new Guid("0bd6cb37-70e2-4e18-94cd-a9660123a5a8"), false, "Site.Name", "\"OSHARP\"", "System.String,System.Private.CoreLib" });

            migrationBuilder.InsertData(
                table: "KeyValue",
                columns: new[] { "Id", "IsLocked", "Key", "ValueJson", "ValueType" },
                values: new object[] { new Guid("80447b2f-694c-4eb1-b876-a9660123a5af"), false, "Site.Description", "\"Osharp with .NetStandard2.0 & Angular6\"", "System.String,System.Private.CoreLib" });

            migrationBuilder.UpdateData(
                table: "Role",
                keyColumn: "Id",
                keyValue: 1,
                columns: new[] { "ConcurrencyStamp", "CreatedTime" },
                values: new object[] { "c3db6903-fb86-44a3-a1b4-425cc16c2692", new DateTime(2018, 9, 25, 17, 41, 51, 342, DateTimeKind.Local) });
        }
    }
}
